﻿using Farming.Domain;
using Farming.Domain.Input;
using Farming.Domain.Output;
using Microsoft.AspNetCore.Http;

namespace Farming.Service
{
    public interface IGoodsService
    {
        Task<int> AddGoods(AddGoodsInput a);
        Task<int> DeleteGoods(int id);
        Task<object> FindGoodsById(int id);
        Task<List<GoodsType>> GetGoods();
        Task<List<GetGoodsListOutput>> GetGoodsList();
        Task<int> UpdateGoods(Goods g);
        Task<dynamic> UploadFile(IFormFile file);
        string UploadImage(IFormFile file);
    }
}